var num = prompt('请输入一个5位数',"");
	var a = num%10;
			
	var b = parseInt(num/10000);
			
	var c = parseInt((num%100)/10);
			
	var d = parseInt((num%10000)/1000);
			
	if(a==b&&c==d&&a==b==c==d){
		lert("是回文数");
	}else{
		alert("不是回文数");
    };


var score = prompt("请输入学生成绩");
var grade = score >=80 ? alert("该学生成绩等级为：A") : alert("该学生成绩等级为：B");


var  ranking = prompt("请输入学生名次",'');
			if(ranking==1){
				alert('奖励1000元！');
			}else if (ranking==2){
				alert('奖励800元！');
			}else if (ranking==3){
			    alert('奖励300元！');
			}else{
				alert('无奖励！');
            }
            

var x  = prompt("请输入月份",'');
switch(x){
	case"3":
	case"4":
	case"5":
	alert("为春天");break;
	case"6":
	case"7":
	case"8":
	alert("为夏天");break;
	case"9":
	case"10":
	case"11":
	alert("为秋天");break;
	case"12":
	case"1":
	case"2":
	alert("为冬天");break;
	default:
	alert("暂不支持！")
}

var num=prompt("请输入购买的《JavaScript》书的数量","");
var num1=prompt("请输入购买的钢笔的数量","");
var num2=prompt("请输入购买的眼镜的数量","");
var num3=prompt("请输入购买的牛奶的数量","");
var jg=59;
var jg1=30;
var jg2=199;
var jg3=68;
var a=parseInt(num);
var b=parseInt(num1);
var c=parseInt(num2);
var d=parseInt(num3);
var gg;
var gg1;
var gg2;
var gg3;
if(a==1){
     gg=jg*a*0.9;
}else if(a==2){
     gg=jg*a*0.8;
}else if(a==3){
     gg=jg*a*0.7;
}else if(a>=4){
     gg=jg*a*0.65;
}
if(b==1){
    gg1=jg1*b*0.9;
}else if(b==2){
     gg1=jg1*b*0.8;
}else if(b==3){
     gg1=jg1*b*0.7;
}else if(b>=4){
     gg1=jg1*b*0.65;
}
if(c==1){
    gg2=jg2*c*0.9;
}else if(c==2){
     gg2=jg2*c*0.8;
}else if(c==3){
     gg2=jg2*c*0.7;
}else if(c>=4){
     gg2=jg2*c*0.65;
}
if(d==1){
     gg3=jg3*d*0.9;
}else if(d==2){
     gg3=jg3*d*0.8;
}else if(d==3){
     gg3=jg3*d*0.7;
}else if(d>=4){
     gg3=jg3*d*0.65;
}
var sprice=parseFloat(gg+gg1+gg2+gg3);
document.write(sprice+"元");